@extends('layouts.application')

@section('content')

    <!-- content start -->
    <div class="admin-content">
        <div class="admin-content-body">

            <h2 class="am-text-primary title_order">代练仲裁订单</h2>
            <hr>

            <form class="am-form-inline am-u-sm-offset-0"
                  role="form"
                  method="get">

                <div class="am-form-group search-set">
                    <input type="text" class="am-form-field am-input-sm" name="order_no" placeholder="订单号" value="{{ Request::input('order_no') }}">
                </div>

                <div class="am-form-group search-set">
                    <input type="text" class="am-form-field am-input-sm" name="employer_name" placeholder="雇主" value="{{ Request::input('employer_name') }}">
                </div>

                <div class="am-form-group search-set">
                    <input type="text" class="am-form-field am-input-sm" name="employee_name" placeholder="接单人" value="{{ Request::input('employee_name') }}">
                </div>

                <div class="am-form-group search-set">
                    <input type="text" class="am-form-field am-input-sm" name="game_account" placeholder="游戏账号" value="{{ Request::input('game_account') }}">
                </div>

                <div class="am-form-group search-set">
                    <span>创建时间</span>
                    <input type="text" class="am-form-field am-input-sm"placeholder="开始时间" id="start_time" name="start_time" data-am-datepicker="{theme: 'success'}" value="{{ Request::input('start_time') }}" readonly/>
                    <span>至</span>
                    <input type="text" class="am-form-field am-input-sm" placeholder="结束时间" id="end_time" name="end_time" data-am-datepicker="{theme: 'success'}" value="{{ Request::input('end_time') }}" readonly/>
                </div>

                <div class="am-form-group search-set">
                    <select data-am-selected="{btnSize: 'sm', searchBox: 1}" name="game_id">
                        <option>英雄联盟</option>
                    </select>
                </div>


                <div class="am-form-group search-set">
                    <select data-am-selected="{btnSize: 'sm', searchBox: 1}" name="game_area_id">
                        <option>区服网络</option>
                        @foreach($parent_game_areas as $parent_game_area)
                            <option value="{{$parent_game_area->ID}}">{{$parent_game_area->GAME_NAME}}</option>
                        @endforeach
                    </select>
                </div>

                <div class="am-form-group search-set">
                    <select data-am-selected="{btnSize: 'sm', searchBox: 1}" name="game_area_parent_id">
                        <option>区服列表</option>
                        @foreach($game_areas as $game_area)
                            <option value="{{$game_area->ID}}">{{$game_area->GAME_NAME}}</option>
                        @endforeach
                    </select>
                </div>


                <div class="am-form-group search-set">
                    <select data-am-selected="{btnSize: 'sm', searchBox: 1, maxHeight: 360}" name="status">
                        <option selected>订单状态</option>
                        <option value="0">订单作废</option>
                        <option value="1">等待支付</option>
                        <option value="2">任务中</option>
                        <option value="3">提交完成申请</option>
                        <option value="4">提交撤销订单</option>
                        <option value="5">任务完成</option>
                        <option value="6">任务终止</option>
                        <option value="7">虚贝裁判</option>
                        <option value="8">订单关闭</option>
                    </select>
                </div>

                <div class="am-form-group search-set">
                    <select data-am-selected="{btnSize: 'sm', searchBox: 1, maxHeight: 360}" name="type">
                        <option>代练类型</option>
                        <option value="0">定位赛</option>
                        <option value="1">排位赛</option>
                        <option value="2">其他</option>
                        <option value="3">等级</option>
                    </select>
                </div>

                <div class="am-form-group search-set">
                    <select data-am-selected="{btnSize: 'sm', searchBox: 1, maxHeight: 360}" name="statistical">
                        <option selected>是否统计</option>
                        <option value="1" @if(Request::input('is_count')==1) selected @endif >是
                        </option>
                        <option value="0" @if(Request::input('is_count')==0) selected @endif >否
                        </option>
                    </select>
                </div>

                <div class="am-form-group search-set">
                    <button type="submit"
                            class="am-btn am-btn-secondary am-btn-sm">查 询
                    </button>
                </div>

            </form>
            <hr>

            <div class="am-g">
                <div class="am-u-sm-12">
                    <form class="am-form">
                        <table class="am-table am-table-bordered am-table-striped am-table-compact">
                            <thead>
                            <tr>
                                <th>创建时间</th>
                                <th>订单号</th>
                                <th>标题</th>
                                <th>游戏类型</th>
                                <th>交易方式</th>
                                <th>雇主</th>
                                <th>接单人</th>
                                <th>押金</th>
                                <th>角色名</th>
                                <th>游戏账号</th>
                                <th>代练类型</th>
                                <th>订单状态</th>
                                <th>价格</th>
                                <th>商品号</th>
                                <th>查看详情</th>

                            </tr>
                            </thead>
                            <tbody class="order_table">

                            <tr class="">
                                <td></td>
                                <td></td>
                                <td></td>
                                <td></td>
                                <td></td>
                                <td></td>
                                <td></td>
                                <td></td>
                                <td></td>
                                <td></td>
                                <td></td>
                                <td></td>
                                <td>￥</td>
                                <td>￥</td>
                                <td><a href="">查看详情</a></td>
                            </tr>


                            </tbody>
                        </table>
                        <div class="am-cf">
                            共 15 条记录
                            <div class="am-fr">
                                <ul class="am-pagination">
                                    <li class="am-disabled"><a href="#">&laquo;</a></li>
                                    <li class="am-active"><a href="#">1</a></li>
                                    <li><a href="#">2</a></li>
                                    <li><a href="#">3</a></li>
                                    <li><a href="#">4</a></li>
                                    <li><a href="#">5</a></li>
                                    <li><a href="#">&raquo;</a></li>
                                </ul>
                            </div>
                        </div>


                        <footer class="admin-content-footer">
                            <hr>
                            <p class="am-padding-left">© 2017 xubei, Inc. Licensed under MIT license.</p>
                        </footer>


                        <!-- content end -->
                    </form>
                </div>
            </div>
        </div>
@endsection



